package org.csu.group4.jpetstore.result;

public class ResultFactory {
    private static Result getResult(int status,String message){
        //小于等于0为异常，大于0正常
        return new Result(status,message);
    }

    public static Result getSuccessResult(String message){
        return getResult(1,message);
    }

    public static Result getFailResult(String message){
        return getResult(0,message);
    }
}
